import http from "../utils/http";

// 查找学校
export const getSchoolService = (params) => {
  return http.get("/user/school", params);
};

export const getSchoolByIdService = (id) => {
  return http.get(`/school/getSchoolById`, id);
};

export const getMajorByNameService = (name) => {
  return http.get(`/school/getMajorByName?name=${name}`);
};

export const getMajorClassByNameService = (name) => {
  return http.get(`/school/getMajorClassByName?name=${name}`);
};

export const getMajorNameByIdService = (id) => {
  return http.get(`/school/getMajorNameById/${id}`);
};

export function getSchoolRegisterCount() {
  return http.get(`/school/getSchoolRegisterCount`);
}
